﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Newtonsoft.Json;

namespace Noria.Web.MyMSDN.Models
{
    [Table("family")]
    internal class Family
    {
        public Family()
        {
        }

        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public long FamilyId { get; set; }

        public string Name { get; set; }

        public bool Enabled { get; set; }
        public long CategoryId { get; set; }
      
        [JsonIgnore]
        public virtual Category Category { get; set; }

        public virtual ICollection<File> Files { get; set; }
    }
}